#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include "AVLTree.h"

int main(int argc, char* argv[]) {
	Element data[] = { 10, 20, 30, 40, 50,
					  60, 68, 80, 25, 7, 55 };
	AVLTree* tree = createAVLTree();

	for (int i = 0; i < sizeof(data) / sizeof(data[0]); ++i) {
		insertAVLTree(tree, data[i]);
	}
	printf("inOrder: ");
	inOrderAVLTree(tree);
	printf("Height: %d\n", heightAVLNode(tree->root));

	deleteAVLTree(tree, 50);
	deleteAVLTree(tree, 60);
	printf("inOrder: ");
	inOrderAVLTree(tree);
	printf("\n");
	releaseAVLTree(tree);
	return 0;
}